<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .box1{
            width: 200px;
            height: 300px;
            float: left;
            background-color: darkblue;
        }
        .box2{
            width: 200px;
            height: 100px;
            float: left;
            background-color: red;
        }
        .box3{
            width: 200px;
            height: 200px;
            float: left;
            background-color:yellow;
        }
    </style>
</head>
<body>
<!--浮动性质2
浮动的元素会互相贴靠在一起-->
<div class="box1"></div>
<div class="box2"></div>
<div class="box3"></div>
</body>
</html>